// 2013-9-12上午02:25:33  net.betou.trade.main.manager.agencyorproxy.SystemAdminMng.java

package net.betou.trade.main.manager.agencyorproxy;

import net.betou.common.page.Pagination;
import net.betou.trade.entity.main.AgentAndAdmins;
import net.betou.trade.entity.main.AgentAndAdminsExt;

/**
 * 
 * @author 叶装装
 */
public interface SystemAdminMng{
	/**
	 * 获取系统管理员
	 * @param searchProperty
	 * @param searchValue
	 * @param orderProperty
	 * @param orderDirection
	 * @param pageNo
	 * @param pageSize
	 * @param filterStatus
	 * @return
	 */
	public Pagination getPage( String searchProperty, String searchValue, String orderProperty, String orderDirection, int pageNo, int pageSize, String filterStatus );

	/**
	 * 根据ID查找
	 * @param id
	 * @return
	 */
	public AgentAndAdmins findById( Integer id );
	
	/**
	 * 查找系统管理员
	 * @param id
	 * @return
	 */
	public AgentAndAdmins findBySystem( Integer id );
	
	/**
	 * 更新
	 * @return
	 */
	public AgentAndAdmins update( Boolean disabled, String password, String email, AgentAndAdmins bean, AgentAndAdminsExt ext, Integer [ ] roleIds );
	
	/**
	 * 删除
	 * @param ids
	 * @return
	 */
	public AgentAndAdmins [ ] deleteByIds( Integer [ ] ids );
	
	/**
	 * 保存
	 * @param ip
	 * @param roleIds
	 * @param bean
	 * @param ext
	 * @return
	 */
	public AgentAndAdmins save( String ip, Integer [ ] roleIds, AgentAndAdmins bean, AgentAndAdminsExt ext );
}
